package com.qlh.lawyermanager.dongao.service;

import com.qlh.lawyermanager.dongao.entity.Lawyer;

import java.util.List;

public interface LawyerService {
    /**
     * 修改律师
     * @param lawyer 律师对象
     * @return 修改成功返回1，否则返回0.
     */
    public int modifyLawyer(Lawyer lawyer);
    /**
     * 按编号查询律师
     * @param lawyerid 律师编号
     * @return 律师对象
     */
    public Lawyer findLawyerById(int lawyerid);
    public int removeLawyer(int lawyerid);
    /**
     * 查询所有律师
     * @return 律师集和
     */
    public List<Lawyer> findLawyer();

    public int addLawyer(Lawyer lawyer);
}